package com.business.api.official.toursism.websiteimage.service;

import com.business.api.official.toursism.websiteimage.dto.WebsiteImageApiDTO;
import com.business.api.official.toursism.websiteimage.from.WebsiteImageApiSaveFrom;
import com.business.api.official.toursism.websiteimage.from.WebsiteImageApiUpdateFrom;
import com.business.api.official.toursism.websiteimage.query.WebsiteImageApiPageQuery;
import com.business.api.official.toursism.websiteimage.query.WebsiteImageApiQuery;
import com.business.api.official.toursism.websiteimage.vo.*;
import com.business.api.official.toursism.websiteimage.vo.data.WebsiteImageApiDetailData;
import com.business.system.official.toursism.websiteimage.entity.WebsiteImage;
import com.seed.core.exception.ServiceException;
import com.seed.core.pojo.service.SeedApiService;

/**
 * @description 轮播图
 * @author CodeGenerator
 * @date   2025-01-27
 * @version V1.0
 */
public interface WebsiteImageApiService extends SeedApiService<WebsiteImage>{

    /**
     * 持久化
     *
     * @param websiteImageFrom 需要保存的对象
     * @return id，如果保存失败返回空字符串
     * @throws ServiceException 业务层异常
     */
    WebsiteImageApiDTO save(WebsiteImageApiSaveFrom websiteImageFrom) throws ServiceException;

    /**
     * 部分更新
     *
     * @param websiteImageFrom 需要更新的对象
     * @return 是否成功
     * @throws ServiceException 业务层异常
     */
    WebsiteImageApiDTO updateSelectiveById(WebsiteImageApiUpdateFrom websiteImageFrom) throws ServiceException;

    /**
     * 获取全部
     *
     * @param query 查询条件
     * @return 详情VOList
     * @throws ServiceException 业务层异常
     */
    WebsiteImageApiDetailListVO listAll(WebsiteImageApiQuery query) throws ServiceException;

    /**
     * 简略对象条件查询
     *
     * @param query 查询条件
     * @return 查询出来的简略对象
     * @throws ServiceException 业务层异常
     */
    WebsiteImageApiBriefPageVO getBriefPageVO(WebsiteImageApiPageQuery query) throws ServiceException;

    /**
     * 详细对象条件查询
     *
     * @param query 查询条件
     * @return 查询出来的详细对象
     * @throws ServiceException 业务层异常
     */
    WebsiteImageApiDetailPageVO getDetailPageVO(WebsiteImageApiPageQuery query) throws ServiceException;
}
